﻿
using BCCommon;
using BCCommon.Enums;
using BCData.OA.WorkflowTemplate.WorkflowTemplateStepFormItem;
using BCDto.OA.WorkflowTemplate.WorkflowTemplateStepFormItem;
using BCDto.Sim.Admin.Admin;
using BCEntity.OA.WorkflowTemplate.WorkflowTemplateStepFormItem;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.OA.WorkflowTemplate.WorkflowTemplateStepFormItem
{
	/// <summary>
	/// 工作流模板步骤表单项
	/// </summary>
	public interface IWorkflowTemplateStepFormItemService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="workflowTemplateStepFormItemId">工作流模板步骤表单项Id</param>
		bool Exists(long workflowTemplateStepFormItemId);
		/// <summary>
		/// 添加工作流模板步骤表单项
		/// </summary>
		/// <param name="requestDto">工作流模板步骤表单项信息</param>
		/// <param name="adminDto"></param>
		WorkflowTemplateStepFormItemDto Add(WorkflowTemplateStepFormItemRequestDto requestDto, AdminDto adminDto);
		/// <summary>
		/// 更新工作流模板步骤表单项
		/// </summary>
		/// <param name="putDto">工作流模板步骤表单项信息</param>
		/// <param name="adminDto"></param>
		WorkflowTemplateStepFormItemDto Update(WorkflowTemplateStepFormItemPutDto putDto, AdminDto adminDto);
		/// <summary>
		/// 删除工作流模板步骤表单项
		/// </summary>
		/// <param name="workflowTemplateStepFormItemId">工作流模板步骤表单项Id</param>
		bool Delete(long workflowTemplateStepFormItemId);
		/// <summary>
		/// 获取工作流模板步骤表单项
		/// </summary>
		/// <param name="workflowTemplateStepFormItemId">工作流模板步骤表单项Id</param>
		WorkflowTemplateStepFormItemDto Get(long workflowTemplateStepFormItemId);
		/// <summary>
		/// 获取工作流模板步骤表单项列表
		/// <paramref name="formConfigCode">表单配置Code</paramref>
		/// </summary>
		IEnumerable<WorkflowTemplateStepFormItemDto> GetList(string formConfigCode);
		/// <summary>
		/// 获取工作流模板步骤表单项分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">工作流模板步骤表单项每页数据条数</param>
		PageableList<WorkflowTemplateStepFormItemDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}